<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Document</title>
<style>
  @keyframes rotate{
    0%{
      transform: rotate(60deg);
    }
    100%{
      transform: rotate(-60deg);
    }
  }
  .box{
    width: 8px;
    height: 80px;
    background-color: tomato;
    margin: 100px auto;
    transform-origin: center bottom;
    animation: rotate 1s infinite linear alternate ;
  }
</style>
</head>
<body>

  <div id='app'>
    <div class="box"></div>
  </div>

<script src='https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.js'></script>
<script>
  const app = new Vue({
    el: '#app'
    ,data: {
      msg: 'Hello Vue'
    }
    ,methods: {

    }
  })
</script>
</body>
</html>